package form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class CustomerForm extends ActionForm {	
	private String  id;
	private String customer;
	private String customerName;
	private String email;
	private String tel;
	private String address;
	private int  mileage;
	private String info;
	private String delflag;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCustomer() {
		return customer;
	}
	public void setCustomer(String customer) {
		this.customer = customer;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getMileage() {
		return mileage;
	}
	public void setMileage(int mileage) {
		this.mileage = mileage;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getDelflag() {
		return delflag;
	}
	public void setDelflag(String delflag) {
		this.delflag = delflag;
	}
	@Override
	public String toString() {
		return "CustomerForm [address=" + address + ", customer=" + customer
				+ ", customerName=" + customerName + ", delflag=" + delflag
				+ ", email=" + email + ", id=" + id + ", info=" + info
				+ ", mileage=" + mileage + ", tel=" + tel + "]";
	}
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		id = null;
		customer="000000";
		customerName=null;
		email = null;
		tel = null;
		address = null;
	   mileage =1000;
		info = null;
		delflag = "0";
		super.reset(mapping, request);
	}


}
